package com.bdqn.mapper;

import com.bdqn.pojo.SysUser;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class SysUserMapperImpl implements SysUserMapper {

    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    public  SqlSessionTemplate getSqlSession() {
        return  sqlSession;
    }
    /**
     * 查询用户列表
     */
    @Override
    public List<SysUser> selectSysUserList(SysUser sysUser) {
        return sqlSession.getMapper(SysUserMapper.class).selectSysUserList(sysUser);
    }

    /**
     * 查询用户列表
     */
    @Override
    public boolean add(SysUser sysUser) {
        return sqlSession.getMapper(SysUserMapper.class).add(sysUser);
    }
}
